medieval capital